<script type="text/javascript">
  imageList = document.getElementsByTagName("img");
  for (var i = 0; i < imageList.length; i++) {
    imageList[i].addEventListener("click",function(){
      var img_url = this.attributes["src"].value;
      window.location.href = img_url+"#PianKePic";
    },"false");
  }

</script>